#ifndef MINI2440SETTINGFORM_H
#define MINI2440SETTINGFORM_H

#include <QWidget>
#include <QtGui>
#include <QXmlStreamReader>
#include <QDomDocument>
#include <mini2440Configuration.h>


namespace Ui {
    class mini2440SettingForm;
}

class mini2440SettingForm : public QWidget {
    Q_OBJECT
public:
    mini2440SettingForm(QWidget *parent = 0);
    ~mini2440SettingForm();
    void setConfig(mini2440Configuration* s_config);
signals:
    void saveSetting();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::mini2440SettingForm *ui;

    bool loadConfig(QString configPath);    
    void readData();

    int timeOut;
    int screenInter;
    QString language;
    unsigned int autoLock;

    mini2440Configuration* config;   

private slots:    
    void on_pbSave_clicked();

};

#endif // MINI2440SETTINGFORM_H
